package cn.com.business.calculate;

public class SecondOneCalculate extends AbstractCalculate {

	public SecondOneCalculate(AbstractCalculate calculate) {
		super(calculate);
	}

	@Override
	public void calculate() {
		if (super.getShopNum() >= 3 && super.getSalsNum() >= 20) {
			if ((super.getLeftIntegral() >= 12.5 * 500
					&& super.getRightIntegral() >= 12.5 * 500) || (super.getLeftIntegral() >= 9 * 500
							&& super.getRightIntegral() >= 16 * 500) || (super.getLeftIntegral() >= 16 * 500
									&& super.getRightIntegral() >= 9 * 500)) {
				super.setMoney(super.getMoney() + 400);
				super.setCalculateProcess(5);
				super.next();
			}else{
				super.setDescription("结算第二轮第三阶段：左右美容院第一轮结算完剩余销售套数不足25套或者左右套数达不到比例的要求");
			}
		}else{
			super.setDescription("结算第二轮第一阶段：发展的美容院数不足3家或者报单数量没有达到20套");
		}

	}

}
